function formatTime(time) {
	if (time != 0 && !time) {
		return '0:0:0'
	}
	if (time < 60) {
		return "0:0:" + time
	} else if (time < 60 * 60) {
		return "0:" + Math.floor(time / 60) + ":" + time % 60
	} else if (time < 60 * 60 * 24) {
		let leftMinute = time % (60 * 60)
		return Math.floor(time / (60 * 60)) + ":" + Math.floor(leftMinute / 60) + ":" + leftMinute % 60
	} else {
		let leftHour = time % (60 * 60 * 24)
		let leftMinute = leftHour % (60 * 60)
		return Math.floor(time / (60 * 60 * 24)) + "天 " + Math.floor(leftHour / (60 * 60)) + ":" + Math.floor(
			leftMinute / 60) + ":" + leftMinute % 60
	}
}

export default {
	formatTime
}
